<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>4-输入输出语句</title>
	</head>
	<body>
		<script type="text/javascript">
			var name = prompt("请输入你的姓名", "姓名");
			alert("你输入的姓名是" + name);
		</script>
	</body>
</html>